using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class MeasType
    {
        private static readonly IMeasType dal = DALFactory.DataAccess.CreateMeasType();

        public IList<MeasTypeInfo> GetMeasTypes()
        {
            return dal.GetMeasTypes();
        }

        public MeasTypeInfo GetMeasType(int measTypeID)
        {
            if (measTypeID< 0)
                return null;
            return dal.GetMeasType(measTypeID);
        }

        public void Insert(MeasTypeInfo measType)
        {
            dal.Insert(measType);
        }
    }
}